/**
 * @author 0283000115
 * @date 2017年12月28日-下午4:44:38
 */
package com.zte.claa.inficombo.csa.app.service.token;

/**
 * @author 0283000115
 *
 */
public class CSAToken {
	public static final String DEFAULT_USER = "InficomboV2";
	// 默认签发者
	public static final String DEFAULT_ISS = "CLAA_InficomboV2";
	// 默认有效期12小时.
	public static final long VALID_TIME_LEN = 12*3600*1000L;
	// 令牌有效期开始时间.
	private long begTime;
	// 令牌有效期截止时间.
	private long expTime;
	// 令牌签发者
	private String iSS;
	// 令牌使用者
	private String user;
	
	/**
	 * 构建器.
	 */
	public CSAToken() {
		this.iSS = DEFAULT_ISS;
		this.user = DEFAULT_USER;
		this.begTime = System.currentTimeMillis();
		this.expTime = this.begTime + VALID_TIME_LEN;
	}

	/**
	 * @return the begTime
	 */
	public long getBegTime() {
		return begTime;
	}

	/**
	 * @param begTime the begTime to set
	 */
	public void setBegTime(long begTime) {
		this.begTime = begTime;
	}

	/**
	 * @return the expTime
	 */
	public long getExpTime() {
		return expTime;
	}

	/**
	 * @param expTime the expTime to set
	 */
	public void setExpTime(long expTime) {
		this.expTime = expTime;
	}

	/**
	 * @return the iSS
	 */
	public String getiSS() {
		return iSS;
	}

	/**
	 * @param iSS the iSS to set
	 */
	public void setiSS(String iSS) {
		this.iSS = iSS;
	}

	/**
	 * @return the user
	 */
	public String getUser() {
		return user;
	}

	/**
	 * @param user the user to set
	 */
	public void setUser(String user) {
		this.user = user;
	}
		
}
